home *** CD-ROM | disk | FTP | other *** search
/ Chip: 2005 Utilities / CHIP Utilities 2005.7z / CHIP Utilities 2005.iso / CHIP Utilities / Zarzadzanie i bezpieczenstwo systemu / MBSA / MBSASetup-EN.msi / Data.Cab / cmdReportList.xsl < prev    next >
Extensible Markup Language  |  2004-08-13  |  985b  |  28 lines

  1. <?xml version="1.0"?> 
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3.  
  4. <xsl:variable name="Assessment">
  5.   <c score="1" text="Incomplete Scan"/>
  6.   <c score="2" text="Severe Risk"/>
  7.   <c score="3" text="Potential Risk"/>
  8.   <c score="4" text="Security FYIs"/>
  9.   <c score="5" text="Strong Security"/>
  10. </xsl:variable>
  11. <xsl:variable name="CR" select="'
  12. '"/>
  13. <xsl:template match="/">
  14.  
  15. Computer Name, IP Address, Assessment, Report Name
  16. -----------------------------------------------------
  17. <xsl:for-each select="Reports">
  18. <xsl:apply-templates>
  19. </xsl:apply-templates>
  20. </xsl:for-each>
  21. </xsl:template>
  22.     
  23. <xsl:template match="Report">
  24.     <xsl:param name="score" select="@grade"/>
  25.     <xsl:value-of select="@computer"/>, <xsl:value-of select="@ip"/>, <xsl:value-of select="document('')/*/xsl:variable[@name='Assessment']/c[@score=$score]/@text"/>, <xsl:value-of select="@file"/><xsl:value-of select="$CR"/>
  26. </xsl:template>
  27.     
  28. </xsl:stylesheet>